package com.yzd.learnjava.generics;

import java.util.Arrays;
import java.util.List;

public class CompilerIntelligence {
	public static void main(String[] args) {
		List<? extends Fruit2> flist = Arrays.asList(new Apple2());
		
		Apple2 apple2 = (Apple2)flist.get(0);
		
		flist.contains(new Apple2());
		flist.indexOf(new Apple2());
	}
}
